<%@ page import="java.util.List" %>
<%@ page import="com.fearless.crm.settings.entity.DicValue" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.Set" %>
<%@ page import="com.fearless.crm.workbench.entity.Tran" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + 	request.getServerPort() + request.getContextPath() + "/";

		//准备字典类型为stage的字典值列表
		List<DicValue> dicValueList=(List<DicValue>)application.getAttribute("stage");

		//准备阶段和可能性之间的对应关系(pMap)
		Map<String,String> pmap=(Map<String, String>)application.getAttribute("pMap");

		//获取pMap中的key集合
		Set<String> keys=pmap.keySet();//这里的keys是一堆stage

		//准备:前面正常阶段和后面丢失阶段的【分界点】
		int point=0;
		for(int i=0;i<dicValueList.size();i++){


			DicValue dicValue=dicValueList.get(i);//取得每一个dicValue对象

			//从dicValue取得value
			String stage=dicValue.getValue();

			//根据stage取得possibility
			String possibility=pmap.get(stage);

			if("0".equals(possibility)){
				//如果可能性为0,说明找到了【分界点】--->前面正常阶段和后面丢失阶段的分界点

				point=i;

				break;//循环中找东西,找到了就及时停止循环,提高效率,不做无用功
			}


		}



%>
<!DOCTYPE html>

<html>
<head>
	<base href="<%=basePath%>">
<meta charset="UTF-8">

<link href="jquery/bootstrap_3.3.0/css/bootstrap.min.css" type="text/css" rel="stylesheet" />

<style type="text/css">
.mystage{
	font-size: 20px;
	vertical-align: middle;
	cursor: pointer;
}
.closingDate{
	font-size : 15px;
	cursor: pointer;
	vertical-align: middle;
}
</style>
	
<script type="text/javascript" src="jquery/jquery-1.11.1-min.js"></script>
<script type="text/javascript" src="jquery/bootstrap_3.3.0/js/bootstrap.min.js"></script>

<script type="text/javascript">

	//默认情况下取消和保存按钮是隐藏的
	var cancelAndSaveBtnDefault = true;
	
	$(function(){
		$("#remark").focus(function(){
			if(cancelAndSaveBtnDefault){
				//设置remarkDiv的高度为130px
				$("#remarkDiv").css("height","130px");
				//显示
				$("#cancelAndSaveBtn").show("2000");
				cancelAndSaveBtnDefault = false;
			}
		});
		
		$("#cancelBtn").click(function(){
			//显示
			$("#cancelAndSaveBtn").hide();
			//设置remarkDiv的高度为130px
			$("#remarkDiv").css("height","90px");
			cancelAndSaveBtnDefault = true;
		});
		
		$(".remarkDiv").mouseover(function(){
			$(this).children("div").children("div").show();
		});
		
		$(".remarkDiv").mouseout(function(){
			$(this).children("div").children("div").hide();
		});
		
		$(".myHref").mouseover(function(){
			$(this).children("span").css("color","red");
		});
		
		$(".myHref").mouseout(function(){
			$(this).children("span").css("color","#E6E6E6");
		});
		
		
		//阶段提示框
		$(".mystage").popover({
            trigger:'manual',
            placement : 'bottom',
            html: 'true',
            animation: false
        }).on("mouseenter", function () {
                    var _this = this;
                    $(this).popover("show");
                    $(this).siblings(".popover").on("mouseleave", function () {
                        $(_this).popover('hide');
                    });
                }).on("mouseleave", function () {
                    var _this = this;
                    setTimeout(function () {
                        if (!$(".popover:hover").length) {
                            $(_this).popover("hide")
                        }
                    }, 100);
                });

//页面加载完毕,展现交易历史列表
		showHistoryList()


	});
//页面加载完毕========================================================================================

//方法,改变交易阶段.参数stage:需要变更的阶段   i:需要变更的阶段对应的下标
	function changeStage(stage,i) {
		/*alert(stage)
		alert(i)*/

		$.ajax({

			url:"tran/changeStage.do",
			type:"post",
			data:{

				"id":"${requestScope.tran.id}",
				"stage":stage,
				"money":"${requestScope.tran.money}",
				"expectedDate":"${requestScope.tran.expectedDate}"
				

			},
			dataType:"json",
			success:function (resp) {
	/*
		resp:
			{"success":true/false,"tranObject":{交易对象}}
	 */
			if(resp.success){

				//alert("修改阶段成功")
				showHistoryList()
				//改变阶段成功后,需要在详细信息页上局部刷新修改人,修改时间,阶段,可能性
				$("#possibility").html(resp.tranObject.possibility)
				$("#stage").html(resp.tranObject.stage)
				$("#editBy").html(resp.tranObject.editBy)
				$("#editTime").html(resp.tranObject.editTime)


				//改变阶段成功后,将所有的阶段图片重新赋予样式,颜色
				changeIcon(stage,i);

			}else{

				alert("改变阶段失败")

			}

			}




		})

	}

//重新赋予所有阶段图标的样式,颜色
	function changeIcon(stage,index1){

		var currentStage=stage;//当前阶段

		var currentPossibility=$("#possibility").html()//当前阶段的可能性

		//获取当前阶段的下标
		var index=index1;

		//前面正常阶段和后面分界点的下标
		var point="<%=point%>";
		alert("当前阶段的可能性"+currentPossibility)

		//alert(currentStage+"  当前阶段下标:"+index+"    前面正常阶段和后面分界点的下标:"+point);

		//如果当前阶段的可能性为0,那么前面七个图标一定是黑圈,后面一个是红叉,一个是黑叉。或者是一个黑叉,一个红叉
		if(currentPossibility == "0"){
			//alert("进入到currentPossibility == 0")
			// //遍历前7个（前面正常阶段和后面分界点的下标）,一定都是黑圈
			for(var i=0;i<point;i++){

				// 黑圈---------------------------------
				// 移除掉原有的样式
				$("#"+i).removeClass();
				// 添加新样式
				$("#"+i).addClass("glyphicon glyphicon-record mystage");
				// 为新样式赋予颜色
				$("#"+i).css("color","#000000");

			}

			// 遍历后两个
			for(var i=point;i<<%=dicValueList.size()%>;i++){
				// 如果是当前阶段
				if(i == index){

					// 红叉-----------------------------
					$("#"+i).removeClass();
					$("#"+i).addClass("glyphicon glyphicon-remove mystage");
					$("#"+i).css("color","#FF0000");

					// 如果不是当前阶段
				}else{

					// 黑叉-----------------------------
					$("#"+i).removeClass();
					$("#"+i).addClass("glyphicon glyphicon-remove mystage");
					$("#"+i).css("color","#000000");

				}
			}

			// 如果当前阶段的可能性不为0,前7个有可能是绿圈,绿色标记,黑圈,后两个一定是黑叉
		}else{
			//走到这里说明当前阶段不为0,那么就是前面7图标啥都有可能,后面两个一定是黑叉
			// 遍历前7个（前面正常阶段和后面分界点的下标）这7个图标是啥样的都有可能
			for(var i=0;i<point;i++){

				// 如果等于当前阶段下标
				if(i == index){

					// 绿色标记--------------------------
					$("#"+i).removeClass();
					$("#"+i).addClass("glyphicon glyphicon-map-marker mystage");
					$("#"+i).css("color","#90F790");

					// 如果小于当前阶段下标
				}else if(i < index){

					// 绿圈------------------------------
					$("#"+i).removeClass();
					$("#"+i).addClass("glyphicon glyphicon-ok-circle mystage");
					$("#"+i).css("color","#90F790");

					// 如果大于当前阶段下标
				}else{

					// 黑圈-------------------------------
					$("#"+i).removeClass();
					$("#"+i).addClass("glyphicon glyphicon-record mystage");
					$("#"+i).css("color","#000000");

				}

			}

			// 遍历后两个, 全部都是黑叉
			for(var i=point;i<<%=dicValueList.size()%>;i++){

				// 黑叉------------------------------------
				$("#"+i).removeClass();
				$("#"+i).addClass("glyphicon glyphicon-remove mystage");
				$("#"+i).css("color","#000000");
			}

		}


	}


//展现交易历史方法,局部刷新。
	function showHistoryList() {

		var tranId="${tran.id}"
		//alert("tranId="+tranId)
		$.ajax({

			url:"tran/getHistoryListByTranId.do",
			type:"get",
			data:{
				"tranId":tranId
			},
			dataType:"json",

			success:function (resp) {
		/*
			resp:
				{"tranHistoryList",{交易历史1},{交易历史2}，{交易历史3}...}

		 */
			var html="";
			$.each(resp.tranHistoryList,function (i,n) {

						html+='<tr>';
						html+='<td>'+n.stage+'</td>';
						html+='<td>'+n.money+'</td>';
						html+='<td>'+n.possibility+'</td>';
						html+='<td>'+n.expectedDate+'</td>';
						html+='<td>'+n.createTime+'</td>';
						html+='<td>'+n.createBy+'</td>';
						html+='</tr>';
			})
				$("#tranHistoryList").html(html)
			}



		})


	}

</script>

</head>
<body>
	
	<!-- 返回按钮 -->
	<div style="position: relative; top: 35px; left: 10px;">
		<a href="javascript:void(0);" onclick="window.history.back();"><span class="glyphicon glyphicon-arrow-left" style="font-size: 20px; color: #DDDDDD"></span></a>
	</div>
	
	<!-- 大标题 -->
	<div style="position: relative; left: 40px; top: -30px;">
		<div class="page-header">
			<h3>${tran.customerId}-交易01 <small>￥${requestScope.tran.money}</small></h3>
		</div>
		<div style="position: relative; height: 50px; width: 250px;  top: -72px; left: 700px;">
			<button type="button" class="btn btn-default" onclick="window.location.href='edit.jsp';"><span class="glyphicon glyphicon-edit"></span> 编辑</button>
			<button type="button" class="btn btn-danger"><span class="glyphicon glyphicon-minus"></span> 删除</button>
		</div>
	</div>

	<!-- 阶段状态 -->
	<div style="position: relative; left: 40px; top: -50px;">
		阶段&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<%
			//准备当前阶段
			Tran tran=(Tran) request.getAttribute("tran");

			String stage=tran.getStage();//当前阶段 stage

			//准备当前阶段的可能性
				String currentPossibility=pmap.get(stage);//当前阶段的可能性


			//判断当前阶段
			//如果当前阶段可能性为0,前面7一个一定是黑圈，后面一个是红叉,一个是黑叉
				if("0".equals(currentPossibility)){


			 //取得每一个遍历出来的阶段
				for(int i=0;i<dicValueList.size();i++){

					 DicValue dicValue=dicValueList.get(i);
					 String listStage=dicValue.getValue();

					 String listPossibility=pmap.get(listStage);//遍历出来的可能性

					//如果遍历出来的可能性为0,说明是后两个，后面一个是红叉,一个是黑叉
					if("0".equals(listPossibility)){

							//如果是当前阶段
							if(listStage.equals(stage)){
								//红叉==========
			%>

			<span id="<%=i%>" onclick="changeStage('<%=listStage%>','<%=i%>')"
				  class="glyphicon glyphicon-remove mystage"
				  data-toggle="popover" data-placement="bottom"
			  data-content="<%=dicValue.getText()%>" style="color: #FF0000;"></span>
			-----------


			<%
							}else {
								//如果不是当前阶段
								//黑叉=====
			%>

			<span id="<%=i%>" onclick="changeStage('<%=listStage%>','<%=i%>')"
				  class="glyphicon glyphicon-remove mystage"
				  data-toggle="popover" data-placement="bottom"
				  data-content="<%=dicValue.getText()%>" style="color: #000000;"></span>
			-----------


			<%

							}


					}else {
						//如果遍历出来的可能性不为0,说明前7个一定是黑圈
						//黑圈=========================
			%>

				      <span id="<%=i%>" onclick="changeStage('<%=listStage%>','<%=i%>')"
					  class="glyphicon glyphicon-record mystage"
					  data-toggle="popover" data-placement="bottom"
					  data-content="<%=dicValue.getText()%>" style="color: #000000;"></span>
		              -----------


			<%

					}

				}



			}else {
			//当前阶段的可能性不为0,说明最后两个一定是黑叉,前七个不好说

			//准备当前阶段的【分界点】/下标
			int index=0;
			for(int i=0;i<dicValueList.size();i++){
				DicValue dicValue=dicValueList.get(i);
				String stageList=dicValue.getValue();
				if(stageList.equals(stage)){
					index=i;
					break;
				}

			}

			for(int i=0;i<dicValueList.size();i++){
				DicValue dicValue=dicValueList.get(i);
				String stageList=dicValue.getValue();
				String possibility=pmap.get(stageList);

				//遍历出来的可能性为0,一定是黑叉。因为这个是可能性不为0的情况。后面两个一定是黑叉
				if("0".equals(possibility)){
					//黑叉
			%>

			  <span id="<%=i%>" onclick="changeStage('<%=stageList%>','<%=i%>')"
			  class="glyphicon glyphicon-remove mystage"
			  data-toggle="popover" data-placement="bottom"
			  data-content="<%=dicValue.getText()%>" style="color: #000000;"></span>
			  -----------


		<%


				}else {
					//遍历出来的阶段不为0,前7个不好说,根据当前阶段的下标来判断

					//等于当前阶段
					if(i==index){
						//绿标记
		%>

			  <span id="<%=i%>" onclick="changeStage('<%=stageList%>','<%=i%>')"
			  class="glyphicon glyphicon-map-marker mystage"
			  data-toggle="popover" data-placement="bottom"
			  data-content="<%=dicValue.getText()%>" style="color: #90F790;"></span>
			   -----------


		<%

					}else if(i<index){//小于当前阶段
						//绿圈

		%>

			  <span id="<%=i%>" onclick="changeStage('<%=stageList%>','<%=i%>')"
			  class="glyphicon glyphicon-ok-circle mystage"
			  data-toggle="popover" data-placement="bottom"
			  data-content="<%=dicValue.getText()%>" style="color: #90F790;"></span>
		  	  -----------


		<%
					}else {
						//大于当前阶段
						//黑圈

		%>

			  <span id="<%=i%>" onclick="changeStage('<%=stageList%>','<%=i%>')"
			  class="glyphicon glyphicon-record mystage"
			  data-toggle="popover" data-placement="bottom"
			  data-content="<%=dicValue.getText()%>" style="color: #000000"></span>
			  -----------


		<%
					}


				}

			}




			}





		%>
		<%--<span class="glyphicon glyphicon-ok-circle mystage" data-toggle="popover" data-placement="bottom" data-content="资质审查" style="color: #90F790;"></span>
		-----------
		<span class="glyphicon glyphicon-ok-circle mystage" data-toggle="popover" data-placement="bottom" data-content="需求分析" style="color: #90F790;"></span>
		-----------
		<span class="glyphicon glyphicon-ok-circle mystage" data-toggle="popover" data-placement="bottom" data-content="价值建议" style="color: #90F790;"></span>
		-----------
		<span class="glyphicon glyphicon-ok-circle mystage" data-toggle="popover" data-placement="bottom" data-content="确定决策者" style="color: #90F790;"></span>
		-----------
		<span class="glyphicon glyphicon-map-marker mystage" data-toggle="popover" data-placement="bottom" data-content="提案/报价" style="color: #90F790;"></span>
		-----------
		<span class="glyphicon glyphicon-record mystage" data-toggle="popover" data-placement="bottom" data-content="谈判/复审"></span>
		-----------
		<span class="glyphicon glyphicon-record mystage" data-toggle="popover" data-placement="bottom" data-content="成交"></span>
		-----------
		<span class="glyphicon glyphicon-record mystage" data-toggle="popover" data-placement="bottom" data-content="丢失的线索"></span>
		-----------
		<span class="glyphicon glyphicon-record mystage" data-toggle="popover" data-placement="bottom" data-content="因竞争丢失关闭"></span>
		-----------
		<span class="closingDate">2010-10-10</span>--%>
	</div>
	
	<!-- 详细信息 -->
	<div style="position: relative; top: 0px;">
		<div style="position: relative; left: 40px; height: 30px;">
			<div style="width: 300px; color: gray;">所有者</div>
			<div style="width: 300px;position: relative; left: 200px; top: -20px;"><b>${requestScope.tran.owner}</b></div>
			<div style="width: 300px;position: relative; left: 450px; top: -40px; color: gray;">金额</div>
			<div style="width: 300px;position: relative; left: 650px; top: -60px;"><b>${requestScope.tran.money}</b></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -60px;"></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -60px; left: 450px;"></div>
		</div>
		<div style="position: relative; left: 40px; height: 30px; top: 10px;">
			<div style="width: 300px; color: gray;">名称</div>
			<div style="width: 300px;position: relative; left: 200px; top: -20px;"><b>${requestScope.tran.name}-交易01</b></div>
			<div style="width: 300px;position: relative; left: 450px; top: -40px; color: gray;">预计成交日期</div>
			<div style="width: 300px;position: relative; left: 650px; top: -60px;"><b>${requestScope.tran.expectedDate}</b></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -60px;"></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -60px; left: 450px;"></div>
		</div>
		<div style="position: relative; left: 40px; height: 30px; top: 20px;">
			<div style="width: 300px; color: gray;">客户名称</div>
			<div style="width: 300px;position: relative; left: 200px; top: -20px;"><b>${requestScope.tran.customerId}</b></div>
			<div style="width: 300px;position: relative; left: 450px; top: -40px; color: gray;">阶段666</div>
			<div style="width: 300px;position: relative; left: 650px; top: -60px;"><b id="stage">${requestScope.tran.stage}</b></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -60px;"></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -60px; left: 450px;"></div>
		</div>
		<div style="position: relative; left: 40px; height: 30px; top: 30px;">
			<div style="width: 300px; color: gray;">类型</div>
			<div style="width: 300px;position: relative; left: 200px; top: -20px;"><b>${requestScope.tran.type}&nbsp;</b></div>
			<div style="width: 300px;position: relative; left: 450px; top: -40px; color: gray;">可能性</div>
			<div style="width: 300px;position: relative; left: 650px; top: -60px;"><b id="possibility">${requestScope.possibility}</b></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -60px;"></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -60px; left: 450px;"></div>
		</div>
		<div style="position: relative; left: 40px; height: 30px; top: 40px;">
			<div style="width: 300px; color: gray;">来源</div>
			<div style="width: 300px;position: relative; left: 200px; top: -20px;"><b>${requestScope.tran.source}</b></div>
			<div style="width: 300px;position: relative; left: 450px; top: -40px; color: gray;">市场活动源</div>
			<div style="width: 300px;position: relative; left: 650px; top: -60px;"><b>${requestScope.tran.activityId}</b></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -60px;"></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -60px; left: 450px;"></div>
		</div>
		<div style="position: relative; left: 40px; height: 30px; top: 50px;">
			<div style="width: 300px; color: gray;">联系人名称</div>
			<div style="width: 500px;position: relative; left: 200px; top: -20px;"><b>${requestScope.tran.contactsId}</b></div>
			<div style="height: 1px; width: 550px; background: #D5D5D5; position: relative; top: -20px;"></div>
		</div>
		<div style="position: relative; left: 40px; height: 30px; top: 60px;">
			<div style="width: 300px; color: gray;">创建者</div>
			<div style="width: 500px;position: relative; left: 200px; top: -20px;"><b>${requestScope.tran.createBy}&nbsp;&nbsp;</b><small style="font-size: 10px; color: gray;">${requestScope.tran.createTime}</small></div>
			<div style="height: 1px; width: 550px; background: #D5D5D5; position: relative; top: -20px;"></div>
		</div>
		<div style="position: relative; left: 40px; height: 30px; top: 70px;">
			<div style="width: 300px; color: gray;">修改者</div>
			<div style="width: 500px;position: relative; left: 200px; top: -20px;"><b id="editBy">${requestScope.tran.editBy}&nbsp;&nbsp;</b><small id="editTime" style="font-size: 10px; color: gray;">${requestScope.tran.editTime}</small></div>
			<div style="height: 1px; width: 550px; background: #D5D5D5; position: relative; top: -20px;"></div>
		</div>
		<div style="position: relative; left: 40px; height: 30px; top: 80px;">
			<div style="width: 300px; color: gray;">描述</div>
			<div style="width: 630px;position: relative; left: 200px; top: -20px;">
				<b>
					${requestScope.tran.description}
				</b>
			</div>
			<div style="height: 1px; width: 850px; background: #D5D5D5; position: relative; top: -20px;"></div>
		</div>
		<div style="position: relative; left: 40px; height: 30px; top: 90px;">
			<div style="width: 300px; color: gray;">联系纪要</div>
			<div style="width: 630px;position: relative; left: 200px; top: -20px;">
				<b>
					&nbsp;${requestScope.tran.contactSummary}
				</b>
			</div>
			<div style="height: 1px; width: 850px; background: #D5D5D5; position: relative; top: -20px;"></div>
		</div>
		<div style="position: relative; left: 40px; height: 30px; top: 100px;">
			<div style="width: 300px; color: gray;">下次联系时间</div>
			<div style="width: 500px;position: relative; left: 200px; top: -20px;"><b>${requestScope.tran.nextContactTime}&nbsp;</b></div>
			<div style="height: 1px; width: 400px; background: #D5D5D5; position: relative; top: -20px;"></div>
		</div>
	</div>
	
	<!-- 备注 -->
	<div style="position: relative; top: 100px; left: 40px;">
		<div class="page-header">
			<h4>备注</h4>
		</div>
		
		<!-- 备注1 -->
		<div class="remarkDiv" style="height: 60px;">
			<img title="zhangsan" src="image/user-thumbnail.png" style="width: 30px; height:30px;">
			<div style="position: relative; top: -40px; left: 40px;" >
				<h5>哎呦！</h5>
				<font color="gray">交易</font> <font color="gray">-</font> <b>动力节点-交易01</b> <small style="color: gray;"> 2017-01-22 10:10:10 由zhangsan</small>
				<div style="position: relative; left: 500px; top: -30px; height: 30px; width: 100px; display: none;">
					<a class="myHref" href="javascript:void(0);"><span class="glyphicon glyphicon-edit" style="font-size: 20px; color: #E6E6E6;"></span></a>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<a class="myHref" href="javascript:void(0);"><span class="glyphicon glyphicon-remove" style="font-size: 20px; color: #E6E6E6;"></span></a>
				</div>
			</div>
		</div>
		
		<!-- 备注2 -->
		<div class="remarkDiv" style="height: 60px;">
			<img title="zhangsan" src="image/user-thumbnail.png" style="width: 30px; height:30px;">
			<div style="position: relative; top: -40px; left: 40px;" >
				<h5>呵呵！</h5>
				<font color="gray">交易</font> <font color="gray">-</font> <b>动力节点-交易01</b> <small style="color: gray;"> 2017-01-22 10:20:10 由zhangsan</small>
				<div style="position: relative; left: 500px; top: -30px; height: 30px; width: 100px; display: none;">
					<a class="myHref" href="javascript:void(0);"><span class="glyphicon glyphicon-edit" style="font-size: 20px; color: #E6E6E6;"></span></a>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<a class="myHref" href="javascript:void(0);"><span class="glyphicon glyphicon-remove" style="font-size: 20px; color: #E6E6E6;"></span></a>
				</div>
			</div>
		</div>
		
		<div id="remarkDiv" style="background-color: #E6E6E6; width: 870px; height: 90px;">
			<form role="form" style="position: relative;top: 10px; left: 10px;">
				<textarea id="remark" class="form-control" style="width: 850px; resize : none;" rows="2"  placeholder="添加备注..."></textarea>
				<p id="cancelAndSaveBtn" style="position: relative;left: 737px; top: 10px; display: none;">
					<button id="cancelBtn" type="button" class="btn btn-default">取消</button>
					<button type="button" class="btn btn-primary">保存</button>
				</p>
			</form>
		</div>
	</div>
	
	<!-- 阶段历史 -->
	<div>
		<div style="position: relative; top: 100px; left: 40px;">
			<div class="page-header">
				<h4>阶段历史</h4>
			</div>
			<div style="position: relative;top: 0px;">
				<table id="activityTable" class="table table-hover" style="width: 900px;">
					<thead>
						<tr style="color: #B3B3B3;">
							<td>阶段</td>
							<td>金额</td>
							<td>可能性</td>
							<td>预计成交日期</td>
							<td>创建时间</td>
							<td>创建人as</td>
						</tr>
					</thead>
					<tbody id="tranHistoryList">
						<%--<tr>
							<td>资质审查</td>
							<td>5,000</td>
							<td>10</td>
							<td>2017-02-07</td>
							<td>2016-10-10 10:10:10</td>
							<td>zhangsan</td>
						</tr>
						<tr>
							<td>需求分析</td>
							<td>5,000</td>
							<td>20</td>
							<td>2017-02-07</td>
							<td>2016-10-20 10:10:10</td>
							<td>zhangsan</td>
						</tr>
						<tr>
							<td>谈判/复审</td>
							<td>5,000</td>
							<td>90</td>
							<td>2017-02-07</td>
							<td>2017-02-09 10:10:10</td>
							<td>zhangsan</td>
						</tr>--%>
					</tbody>
				</table>
			</div>
			
		</div>
	</div>
	
	<div style="height: 200px;"></div>
	
</body>
</html>